package com.ruoyi.iot.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 气象站数据对象 iot_device_weather
 *
 * @author rww
 * @date 2023-09-20
 */
public class DeviceWeather extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 热辐射量(单位W/m2) */
    @Excel(name = "热辐射量(单位W/m2)")
    private String radiation;

    /** 日照时数  ( 单位 h) */
    @Excel(name = "日照时数  ( 单位 h)")
    private String sunshineHours;

    /** 空气温度  (单位 ℃) */
    @Excel(name = "空气温度  (单位 ℃)")
    private String airTemperature;

    /** 空气湿度 (单位 %) */
    @Excel(name = "空气湿度 (单位 %)")
    private String airHumidity;

    /** 雨量(单位 mm/h) */
    @Excel(name = "雨量(单位 mm/h)")
    private String rain;

    /** 风速(单位 m/s) */
    @Excel(name = "风速(单位 m/s)")
    private String windSpeed;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRadiation(String radiation)
    {
        this.radiation = radiation;
    }

    public String getRadiation()
    {
        return radiation;
    }
    public void setSunshineHours(String sunshineHours)
    {
        this.sunshineHours = sunshineHours;
    }

    public String getSunshineHours()
    {
        return sunshineHours;
    }
    public void setAirTemperature(String airTemperature)
    {
        this.airTemperature = airTemperature;
    }

    public String getAirTemperature()
    {
        return airTemperature;
    }
    public void setAirHumidity(String airHumidity)
    {
        this.airHumidity = airHumidity;
    }

    public String getAirHumidity()
    {
        return airHumidity;
    }
    public void setRain(String rain)
    {
        this.rain = rain;
    }

    public String getRain()
    {
        return rain;
    }
    public void setWindSpeed(String windSpeed)
    {
        this.windSpeed = windSpeed;
    }

    public String getWindSpeed()
    {
        return windSpeed;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("radiation", getRadiation())
            .append("sunshineHours", getSunshineHours())
            .append("airTemperature", getAirTemperature())
            .append("airHumidity", getAirHumidity())
            .append("rain", getRain())
            .append("windSpeed", getWindSpeed())
            .append("time", getTime())
            .append("deviceCode", getDeviceCode())
            .toString();
    }
}
